ui:use('busi_bs_class_gantt');
local m_pGantt = CLuaGantUtil();
m_pGantt:SetGant(ui:getDialogName(), 'id_gantt');
local ganttBusi = CLuaGanttBusi:create();
local dtFrom = '';
local dtTo = '';
dtFrom = cutil:getTodayStart();
dtTo = cutil:getPreDay(30);
ganttBusi:init(m_pGantt, dtFrom, dtTo);
local sEqpt = "";
local helpEqpt = CSelectHelp();
for i=0,helpEqpt:size()-1 do
if i== helpEqpt:size()-1 then
sEqpt = sEqpt .. helpEqpt:valueString(i,'eqpt_id') ;
else
sEqpt = sEqpt .. helpEqpt:valueString(i,'eqpt_id') .. ',';
end
end
ganttBusi:set_gantt_eqpt(sEqpt);
local help = CSelectHelp();
help = ganttBusi:get_gantt_eqpt();
help:dump();
ganttBusi:update_gantt(dtFrom,dtTo);